/**
 * coomix 微博模板的公共脚本方法
 */
coomix.tmpl.parse = function(tmpl,list){
	for(var i=0;i<list.length;i++)
	{
		//必须是key value的方式[{"key":"value","key2":"value2"},{"key":"value","key2":"value2"}]
		var json = list[i];
		for(var key in json){
			//[#key] 替换成value
			tmpl = tmpl.replace(new RegExp("\[#"+ key + "\]","g"),json.key);
		}
		return tmpl;
	}
};